<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./Template/templateClient.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                >

    <ui:define name="content">
        salut

        <h:outputScript library="js" name="geolocalisation.js" />
        <h:form>  
            <p:mindmap value="#{mindMapManagedBean.root}" style="width:100%;height:600px;border:1px solid black;">  
                <p:ajax event="select" listener="#{mindMapManagedBean.onNodeSelect}" />  
                <p:ajax event="dblselect" listener="#{mindMapManagedBean.onNodeDblselect}" update="output" oncomplete="details.show()"/>  
            </p:mindmap>  

            <p:dialog widgetVar="details" header="Node Details" resizable="false" modal="true" showEffect="fade" hideEffect="fade">  
                <h:outputText id="output" value="#{mindMapManagedBean.selectedNode.data}" />  
            </p:dialog>  

        </h:form>  

    </ui:define>

</ui:composition>

